package data_test;

import dao.ICourseOperation;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import pojo.CourseInfo;

import java.util.List;

public class TraditionalSelection {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:data_control\\dao.xml");
//        IAddressOperation bean = context.getBean(IAddressOperation.class);
//        List<AddressInfo> all = bean.getAll();
//        System.out.println(all);
//        System.out.println(bean.getAddress(6));
        ICourseOperation bean = context.getBean(ICourseOperation.class);
        List<CourseInfo> all = bean.getAll();
        System.out.println(all);
        context.close();
    }
}
